<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    .box{
      width:300px;
      height:150px;
      animation: go 5s ease 0s infinite ;
    }
    @keyframes go {
     0% {
       transform: translate3d(0,0,0);
     }
     50%{
       transform: translate3d(1000px,0,0);
     }
     51% {
       transform: translate3d(1000px , 0 ,0) rotateY(180deg);
     }
     99%{
       transform: translate3d(0,0,0) rotateY(180deg);
     }
     100%{
        transform: translate3d(0,0,0) rotateY(0deg);
     }
      
    }
    .box img{
      width:100%;
    }
  </style>
</head>
<body>
  <div class="box">
    <img src="./images/car.jpg" alt="">
  </div>
</body>
</html>